﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Theme/main.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="XPMVC.Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <form runat="server" id="loginForm">
        <div class="loginForm">
            <div style="color: red;" visible="false" runat="server" id="loginError"></div>
            <table>
                <tr>
                    <td>Username:</td>
                    <td>
                        <asp:TextBox runat="server" ID="loginUser" CssClass="textbox"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="loginUser" ID="RequiredFieldValidator1" SetFocusOnError="true" runat="server" ErrorMessage="Required!"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td>
                        <asp:TextBox TextMode="Password" runat="server" ID="loginPassword" CssClass="textbox"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="loginPassword" ID="RequiredFieldValidator3" SetFocusOnError="true" runat="server" ErrorMessage="Required!"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td>
                        <asp:TextBox TextMode="Email" runat="server" ID="loginEmail" CssClass="textbox"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="loginEmail" ID="RequiredFieldValidator2" Display="Dynamic" SetFocusOnError="true" runat="server" ErrorMessage="Required!"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                            ControlToValidate="loginEmail" SetFocusOnError="true"
                            ErrorMessage="Not valid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>First Name:</td>
                    <td>
                        <asp:TextBox runat="server" ID="loginFirstName" CssClass="textbox"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="loginFirstName" ID="RequiredFieldValidator5" SetFocusOnError="true" runat="server" ErrorMessage="Required!"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Button runat="server" ID="loginSubmit" Text="Submit" CssClass="button white" /></td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
